home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / close-1r / form1.frm next >
Text File  |  1999-08-12  |  3KB  |  138 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   3420
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   7320
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   3420
  10.    ScaleWidth      =   7320
  11.    StartUpPosition =   3  'Windows Default
  12.    Begin VB.TextBox Text1 
  13.       Height          =   285
  14.       Left            =   480
  15.       TabIndex        =   6
  16.       Text            =   "1000"
  17.       Top             =   1560
  18.       Width           =   2295
  19.    End
  20.    Begin VB.CommandButton Command3 
  21.       Caption         =   "Test3"
  22.       Height          =   615
  23.       Left            =   4080
  24.       TabIndex        =   5
  25.       Top             =   1920
  26.       Width           =   3135
  27.    End
  28.    Begin VB.CommandButton Command2 
  29.       Caption         =   "Test2"
  30.       Height          =   375
  31.       Left            =   120
  32.       TabIndex        =   4
  33.       Top             =   2400
  34.       Width           =   2655
  35.    End
  36.    Begin VB.CommandButton Command1 
  37.       Caption         =   "Test"
  38.       Height          =   495
  39.       Left            =   120
  40.       TabIndex        =   3
  41.       Top             =   840
  42.       Width           =   6615
  43.    End
  44.    Begin VB.PictureBox Pic3 
  45.       Height          =   615
  46.       Left            =   4080
  47.       ScaleHeight     =   555
  48.       ScaleWidth      =   3075
  49.       TabIndex        =   2
  50.       Top             =   2640
  51.       Width           =   3135
  52.    End
  53.    Begin VB.PictureBox Pic2 
  54.       Height          =   375
  55.       Left            =   120
  56.       ScaleHeight     =   315
  57.       ScaleWidth      =   2595
  58.       TabIndex        =   1
  59.       Top             =   2880
  60.       Width           =   2655
  61.    End
  62.    Begin VB.PictureBox Pic1 
  63.       Height          =   375
  64.       Left            =   120
  65.       ScaleHeight     =   315
  66.       ScaleWidth      =   6555
  67.       TabIndex        =   0
  68.       Top             =   360
  69.       Width           =   6615
  70.    End
  71.    Begin VB.Label Label1 
  72.       AutoSize        =   -1  'True
  73.       Caption         =   "Max:"
  74.       Height          =   195
  75.       Left            =   120
  76.       TabIndex        =   7
  77.       Top             =   1560
  78.       Width           =   345
  79.    End
  80. End
  81. Attribute VB_Name = "Form1"
  82. Attribute VB_GlobalNameSpace = False
  83. Attribute VB_Creatable = False
  84. Attribute VB_PredeclaredId = True
  85. Attribute VB_Exposed = False
  86. Private Sub Command1_Click()
  87. Dim X As Integer
  88. Dim max As Integer
  89.  
  90. max = Text1
  91.  
  92. For X = 1 To max
  93.     'leaving out the optional caption will just display
  94.     'the number with a percent sign  ie: 46%
  95.     Call Progress(Pic1, X, max)
  96.     
  97.    
  98.  
  99. Next X
  100. End Sub
  101.  
  102. Private Sub Command2_Click()
  103. Dim X As Integer
  104. Dim max As Integer
  105.  
  106. max = Text1
  107.  
  108. For X = 1 To max
  109.     
  110.     'Entering the Caption with a percent sign in front
  111.     'will display the text you specify with the numbered
  112.     'percent following  ie: you Input "LOADIN" will display
  113.     'LOADING 45%
  114.     Call Progress(Pic2, X, max, "%Loading")
  115.     
  116.     
  117.  
  118. Next X
  119.  
  120.     
  121. End Sub
  122.  
  123. Private Sub Command3_Click()
  124. Dim X As Integer
  125. Dim max As Integer
  126.  
  127. max = Text1
  128.  
  129. For X = 1 To max
  130.     
  131.     'Entering the caption with nothing if front will just
  132.     'display what you typed ie: you Input "Loading" will
  133.     'disply Loading
  134.     Call Progress(Pic3, X, max, "Loading")
  135.  
  136. Next X
  137. End Sub
  138.